<?php
/* -------------------------------------------------------------------------------------
* 	ID:						$Id: process.php 11 2013-09-21 11:43:11Z phone.mueller@googlemail.com $
* 	Letzter Stand:			$Revision: 11 $
* 	zuletzt geaendert von:	$Author: siekiera $
* 	Datum:					$Date: 2013-09-21 11:43:11 +0000 (Sat, 21 Sep 2013) $
*
* 	SEO:mercari by Siekiera Media
* 	http://www.seo-mercari.de
*
* 	Copyright © since 2011 SEO:mercari
* --------------------------------------------------------------------------------------
* 	based on:
* 	© 2000-2001 The Exchange Project  (earlier name of osCommerce)
* 	© 2002-2003 osCommerce - www.oscommerce.com
* 	© 2003     nextcommerce - www.nextcommerce.org
* 	© 2005     xt:Commerce - www.xt-commerce.com
*
* 	Released under the GNU General Public License
* ----------------------------------------------------------------------------------- */

$process_list = $db->db_query("SHOW FULL PROCESSLIST "); 
?>
<div id="list">
	<table border="0" width="100%" cellspacing="0" cellpadding="0" class="dataTable">
		<tr class="dataTableHeadingRow">
			<td class="dataTableHeadingContent">Beenden</td>
			<td class="dataTableHeadingContent">ID</td>
			<td class="dataTableHeadingContent">User</td>
			<td class="dataTableHeadingContent">Host</td>
			<td class="dataTableHeadingContent">DB</td>
			<td class="dataTableHeadingContent">Command</td>
			<td class="dataTableHeadingContent">Time</td>
			<td class="dataTableHeadingContent">State</td>
			<td class="dataTableHeadingContent">Info</td>
		</tr>
		<?php		
		while(!$process_list->EOF){ 
			if ($process_list->_currentRow % 2 == 0) $f = 'dataTableRow';
			else $f = '';
			echo '<tr class="'.$f.'" onmouseover="this.className=\'dataTableRowOver\';this.style.cursor=\'pointer\'" onmouseout="this.className=\''.$f.'\'">';?>		
				<td class="dataTableContent al"><a href="db_operations.php?action=kill&amp;kill=<?php echo $process_list->fields['Id']; ?>" >Prozess beenden</a></td>	
				<td class="dataTableContent al"><?php echo $process_list->fields['Id']; ?></td>
				<td class="dataTableContent al"><?php echo $process_list->fields['User']; ?></td>
				<td class="dataTableContent al"><?php echo $process_list->fields['Host']; ?></td>
				<td class="dataTableContent al"><?php echo $process_list->fields['db']; ?></td>
				<td class="dataTableContent al"><?php echo $process_list->fields['Command']; ?></td>
				<td class="dataTableContent al"><?php echo $process_list->fields['Time']; ?></td>
				<td class="dataTableContent al"><?php echo $process_list->fields['State']; ?></td>
				<td class="dataTableContent al"><?php echo $process_list->fields['Info']; ?></td>
			</tr>
		<?php
			$process_list->MoveNext();
		}
		?>
	</table>
</div>